 $(function(){  
  var companyName=localCache.getSessionItem('companyName'); 
  var caller=localCache.getSessionItem('caller');
  var periphery_code=localCache.getSessionItem('periphery_code');
  var periphery_account=localCache.getSessionItem('periphery_account');
  var periphery_user_account=localCache.getSessionItem('userId');
  var url=localCache.getSessionItem('account_limit_url');

	$('#caller').html(caller);
	$('#companyName').html(companyName);
	$('#back').on('click',function(){
		history.back();
	});
    $.ajax({
      type: "get",
      url: url,
      dataType: "jsonp",  
      data:{
    	  periphery_code:periphery_code,
    	  periphery_account:periphery_account, 
    	  periphery_user_account:periphery_user_account
      },
      jsonp: "callback",
      success: function(json){
        if(json){
          if(json['flag']=='0000'){
        	  $('#limit').html((function(value){
        		  switch(value){
        		     case -1:
        		    	 return "无上限";
        		    	 break;
        		     case 0:
        		    	 return "禁用";
        		    	 break;
        		     default:
        		    	 return value+"元";
        		  }
        	  })(json['data'].limit_line));
          }
        }  
      },
      error: function(){
      }
  });

    
 })
	
